<?php
include_once 'module/controls.php';
include_once 'js/ckeditor/ckeditor.php';
include_once 'js/ckfinder/ckfinder.php';
include_once 'model/questions/process.php';
$question = new questions();
$c = new controls();
$fillOne = mysql_fetch_array($question->FillOne($_GET));
?>
<div id="content">
    <div class="content_block">
        <h2 class="jquery_tab_title"><?php echo $phrase["manager_banner"] ?></h2>
        <form method="post" action="<?= $url["home"] ?>/menu/question-process" enctype="multipart/form-data">
            <p>
                <?php echo $c->get_textHidden("id", $fillOne["question_id"]) ?>
                <?php echo $c->get_label($phrase["question_title"]) ?>
                <?php echo $c->get_textReadOnly("question_title", $fillOne["question_title"]) ?>
                <span id="tick_username" class="tick"></span>
                <span id="cross_username" class="cross"></span>
            </p>
            <p>
                <?php echo $c->get_label($phrase["fullname"]) ?>
                <?php echo $c->get_textReadOnly("fullname", $fillOne["fullname"]) ?>
            </p>

            <p>
                <?php echo $c->get_label($phrase["phone"]) ?>
                <?php echo $c->get_textReadOnly("phone", $fillOne["phone"]) ?>
            </p>
            <p>
                <?php echo $c->get_label($phrase["email"]) ?>
                <?php echo $c->get_textReadOnly("email", $fillOne["email"]) ?>
            </p>
            <p>
                <?php echo $c->get_label($phrase["question_description"]) ?>
                <?php echo $c->get_textareaReadOnly("question_description", $fillOne["question_description"]) ?>
            </p>
            <p>
                <?php echo $c->get_label($phrase["re_question"]) ?>
                <?php echo $c->get_textarea("re_question", $fillOne["re_question"]) ?>
            </p>
            <p>
                <?php echo $c->get_button("update", $phrase["accept"]) ?>
            </p>
            <p><img id="images"/></p>
        </form>
    </div>
</div>
<?php
$ckeditor = new CKEditor();
$ckeditor->basePath = "{$url["home"]}/js/ckeditor/";
CKFinder::SetupCKEditor($ckeditor, "{$url['home']}/js/ckfinder/");
$ckeditor->replace("re_question");
?>